#include <string.h>
#include <array>
#include <iostream>
#include <string>
#include <sstream>
#include <clocale>
#include <list>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <clocale>
#include <unordered_map>

using namespace std;


namespace u32{
#pragma once
	class unordered_map_ip	
	{

	public:
		std::unordered_map <string, int> v;

	public:

		unordered_map_ip()
		{
		}


		int TellSize(){
			return v.size();

		}
		
		int Antal(string a){
		
			return v[a];
		
		}

		void ReadFromFile(string in)
		{
			int ipnr;
			string str;
			ifstream fin;
			fin.open(in);


			while (std::getline(fin, str))
			{
				istringstream iss(str);
				string ip1, ip2;

				iss >> ip1 >> ip2;
				

 				v[ip2]++;



			}
		}



		~unordered_map_ip()
		{
		}
	};
}



